import { _decorator, Component, Node } from 'cc';
import { CarlosEngine } from './libs/carlos-engine';
const { ccclass, property,executeInEditMode} = _decorator;

@ccclass('Wasm')
@executeInEditMode
export class Wasm extends Component {
    async start() {
        await CarlosEngine.instance.init();
        CarlosEngine.instance.openPhysics();
    }

    update(deltaTime: number) {
        CarlosEngine.instance.update(deltaTime);
    }
}

